home *** CD-ROM | disk | FTP | other *** search
/ How Many Bugs in a Box / How Many Bugs in a Box.cdr / bugs / act2 / 00258.ls < prev    next >
Encoding:
Text File  |  1995-03-28  |  736 b   |  30 lines

  1. on mouseDown
  2.   global toplimit, bottomlimit, rightlimit, leftlimit, mysound, grabcur
  3.   swapme2()
  4.   cursor([grabcur, grabcur + 1])
  5.   repeat while the mouseDown = 1
  6.     set myh to the mouseH
  7.     set myv to the mouseV
  8.     if myh < leftlimit then
  9.       set the locH of sprite 33 to leftlimit
  10.     else
  11.       if myh > rightlimit then
  12.         set the locH of sprite 33 to rightlimit
  13.       else
  14.         set the locH of sprite 33 to myh
  15.       end if
  16.     end if
  17.     if myv < toplimit then
  18.       set the locV of sprite 33 to toplimit
  19.     else
  20.       if myv > bottomlimit then
  21.         set the locV of sprite 33 to bottomlimit
  22.       else
  23.         set the locV of sprite 33 to myv
  24.       end if
  25.     end if
  26.     updateStage()
  27.   end repeat
  28.   moveme2()
  29. end
  30.